#ifndef DEVNODELIST_H
#define DEVNODELIST_H
#include <QObject>
#include "devnode.h"
#include "XDPER.H"

#define	MAX_CONN_DEV			(20)	/* max number of device we can connect */

class devNodeList: public QObject
{
    Q_OBJECT
public:
    explicit devNodeList(QObject *parent = 0);

    int getNode(int i, devNode &destnode);
    devNode *findnode(QString devname,int &index);
    int	addNode(devNode &new_node);

    int	printNodeList();
private:
    QList<devNode> node;
//    devNode node[MAX_CONN_DEV];
};

#endif // DEVNODELIST_H
